
package shapes;

import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Panel;
import javax.swing.*;
import static javax.swing.JFrame.EXIT_ON_CLOSE;

public class gcanvas extends JFrame
{
    shapespanel sp;
    Panel left;
    public gcanvas(shapespanel p)
    {
        super("Shapes");
        setSize(500,500);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setVisible(true);
        left=new Panel();
        left.setSize(100,500);
       //setLayout(new GridLayout(1,2));
       // setLayout(new FlowLayout());
        sp=p;
        add(sp);
         //add(left);
       
    }
}
